package com.aoip.telemetry.telemetry.entity.pipeline;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 测站与策略配置关联关系表测站列表
 *
 * @author chenbai
 * @version 1.0
 * @date 2021/7/12 3:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("rel_st_handle_st")
@ApiModel(description = "测站与策略配置关联关系表测站列表")
public class RelStHandleStEntity {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private String id;

    @TableField(value = "rel_st_handle_id")
    @ApiModelProperty("测站与策略实例关联关系表主键")
    private String relStHandleId;

    @TableField(value = "st_code")
    @ApiModelProperty("测站编码")
    private String stCode;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @ApiModelProperty("是否删除（0：正常，1：删除）")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;

    public RelStHandleStEntity(String relStHandleId, String stCode) {
        this.relStHandleId = relStHandleId;
        this.stCode = stCode;
    }
}
